package BinaryOperators;

public class PowFunction implements Function{

	@Override
	public double Execute(double[] args) {
		if(args.length != 2){
			//TODO handle Exception:
			throw new IndexOutOfBoundsException();
		}else 
			return Math.pow(args[0],args[1]);
		}	
	}